unit MainFrm;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, 
  Controls, Forms, Dialogs,StdCtrls;

type
  TMainForm = class(TForm)
    Memo1: TMemo;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MainForm: TMainForm;

implementation

procedure ShowSubForm(parent:TMainForm); 
                                             stdcall; external 'FRMLIB2.DLL';

{$R *.DFM}

procedure TMainForm.Button1Click(Sender: TObject);
begin
     ShowSubForm(Self);  
end;

end.
